<div class="main-content">
    <nav class="navbar user-info-navbar" role="navigation">
        <ul class="user-info-menu left-links list-inline list-unstyled">

            <li class="hidden-sm hidden-xs">
                <a href="javascript:;" data-toggle="sidebar">
                    <i class="fa-bars"></i>
                </a>
            </li>

            <li class="dropdown hover-line">
                <a href="javascript:;" data-toggle="dropdown">
                    <i class="fa-bell-o"></i>
                    <span class="badge badge-purple"><if condition="$messageCount > 0">{$messageCount}</if></span>
                </a>

                <ul class="dropdown-menu notifications">
                    <li class="top">
                        <p class="small">
                            <a href="javascript:;" class="pull-right">全部标记已读</a>
                            你有 <strong>{$messageCount}</strong> 条新的消息.
                        </p>
                    </li>

                    <li>
                        <ul class="dropdown-menu-list list-unstyled ps-scrollbar">
                            <if condition="count($messageList) > 0">
                                <loop variable="$messageList" key="$key" value="$message">
                                    <li class="active notification-success" id="id-{$message->id}">
                                        <!-- active notification-secondary -->
                                        <a href="javascript:;">
                                            <i class="fa-user"></i>
                                            <!-- fa-lock -->
											<span class="line">
												<strong>{$message->content}</strong>
											</span>
                                            <span class="line small time">{(date("Y-m-d H:i:s", $message->pushTime))}</span>
                                        </a>
                                    </li>
                                </loop>
                                <else>
                                    <li class="active notification-success" id="id-0">
                                        <!-- active notification-secondary -->
                                        <a href="javascript:;">
                                            <i class="fa-user"></i>
                                            <!-- fa-lock -->
                                        <span class="line">
                                            <strong>无新消息</strong>
                                        </span>
                                            <span class="line small time">{(date("Y-m-d H:i:s", time()))}</span>
                                        </a>
                                    </li>
                                </else>
                            </if>
                        </ul>
                    </li>
                    <li class="external">
                        <a href="javascript:;">
                            <span>查看所有消息</span>
                            <i class="fa-link-ext"></i>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
        <ul class="user-info-menu right-links list-inline list-unstyled">

            <li class="dropdown user-profile">
                <a href="#" data-toggle="dropdown">
                    <img src="{(\Helper\Utils::gravatar($user->email))}" alt="user-image" class="img-circle img-inline userpic-32" width="28" />
                    <span>
                        {$user->nickname}
                        <i class="fa-angle-down"></i>
                    </span>
                </a>

                <ul class="dropdown-menu user-profile-menu list-unstyled">
                    <li>
                        <a href="/member/info">
                            <i class="fa-user"></i>
                            个人资料
                        </a>
                    </li>
                    <li>
                        <a href="/member/changePassword">
                            <i class="fa-wrench"></i>
                            设置
                        </a>
                    </li>
                    <li>
                        <a href="/support/help">
                            <i class="fa-info"></i>
                            帮助
                        </a>
                    </li>
                    <li class="last">
                        <a href="/auth/logout">
                            <i class="fa-lock"></i>
                            登出管理端
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </nav>
    <script type="text/javascript">function showToastr(messages,waitime,timeOut, title){if(timeOut==null||timeOut==0||timeOut=="")timeOut="5000";setTimeout(function(){var opts={"closeButton":true,"debug":false,"positionClass":"toast-top-right toast-default","toastClass":"black","onclick":null,"showDuration":"100","hideDuration":"1000","timeOut":timeOut,"extendedTimeOut":"1000","showEasing":"swing","hideEasing":"linear","showMethod":"fadeIn","hideMethod":"fadeOut"};toastr.info(messages, title==undefined?'系统提示':title,opts);},waitime);}</script>